import request from "@/utils/requset.js"
export const apis = {
  query: (params) => {
    return request({
      url: "/inspectionPlanTask/list",
      method: "get",
      params,
    })
  },

  getByPoint: (params) => {
    return request({
      url: "/inspectionPoint/getByIdtOTaskInfo",
      method: "get",
      params: params,
    })
  },
}

export const taskPoints = {
  query: (params) => {
    return request({
      url: "/inspectionPlanTaskDetails/list",
      method: "get",
      params,
    })
  },
  queryPoint: (params) => {
    return request({
      url: "/inspectionPoint/list",
      method: "get",
      params,
    })
  },
  queryProject: (params) => {
    return request({
      url: "/inspectionProject/list",
      method: "get",
      params,
    })
  },
  update: (data) => {
    return request({
      url: "/inspectionPlanTaskDetails/completeTask",
      method: "post",
      data: data,
    })
  },
}
